package com.whucke.im.config;

import com.whucke.im.cmd.PrefixedResult;
import org.springframework.shell.ResultHandler;
import org.springframework.stereotype.Component;

/**
 * 自定义命令行显示
 *
 * @author Zhang Peng
 * @since 2019/2/23 21:03
 */
//@Component
public class PrefixedResultHandler implements ResultHandler<PrefixedResult> {

    @Override
    public void handleResult(PrefixedResult result) {
        System.out.printf("%s%s", result.getPrefix(), result.getConnector());
    }
}
